import requests
import random
import time
def pachong(url):
    heard = {
        'Accept': '*/*',
        'Accpet-Encoding': 'gzip,deflate',
        'Accept-Language': 'zh-CN',
        "connection": 'Keep-Alive',
        'Cookie':'JSESSIONID=CyUMoRrN7F-Iaew0dx3fhiD1yRVq0YwB8n5Zlnl758aZ9eHLRmOA!-1504371576; BIGipServeryidongxuexixitong-APP_7080_pool=21049640.43035.0000; BIGipServeryidongxuexixitong-wenjianfuwu_80_pool=88158504.36895.0000',
        'Host': 'moedu.cmbc.com.cn',
        'If-Modified-Since':'Mon, 15Aug 2016 08:43:34 GMT',
        #'Referer': 'https://moedu.cmbc.com.cn/edu/resmgt/resource!player.action?decorate=false&actAttId=7847988&id=18047&modId=18266&resType=SCORM',
        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1;WOW64) AppleWebKit/537.36 (KHTML, likeGecko) Chrome/47.0.2526.108 safari/527.36 2345Explorer/8.7.0.16013'
    }
    resport = requests.get(url, headers=heard, allow_redirects=False)
    return resport

print(pachong("https://moedu.cmbc.com.cn/edu/learn/course!input.action?id=16711").text)#https://moedu.cmbc.com.cn/edu/js/scormAdapter.js

a = time.time()
b = time.time()
print(b-a)